package com.xiangwei.util;

import java.math.BigDecimal;

public interface Const {
	class Common {
		public final static int SUCCESS = 200;
		public final static int FAIL = 500;
//		public final static String HOST = "http://weiba.nat123.net/";
		public final static String portal = "portal";
		public final static String weixin = "weixin";
		//新增用户初始化密码
		public final static String ADMIN_PASSWORD_INIT = "123456";
		public final static String success = "success";
		public final static String error = "error";
		public final static String NOTENOUGH = "NOTENOUGH";
		//客户信息
		public final static String CUSTOMER_INFO = "customer";
		//客户ID
		public final static String CUSTOMER_ID = "customerId";
		//用户信息
		public final static String GOD_INFO = "god";
		//厂商信息
		public final static String VENDOR_INFO = "vendor";
		//厂商信息
		public final static String ACCESS_TOKEN = "accessToken";
		//七牛云服务的图片访问地址
		public final static String IMAGE_URL = "imageUrl";
		
		public final static String OPEN_ID = "openId";
		//男女类型
		public final static String WEIXIN_MAN = "1";
		public final static String WEIXIN_WOMAN = "0";
		
		//礼品类型
		public final static Integer GIFT_TYPE_REAL = 0;//实物礼品
		public final static Integer GIFT_TYPE_COUPON = 1;//票劵礼品
		
		//在线状态
		public final static String ON_LINE = "yes";
		//离线状态
		public final static String OFF_LINE = "no";
		//签到状态
		public final static Integer IS_SIGN_YES = 1;//已签到
		public final static Integer IS_SIGN_NO = 0;//未签到
		
		//coupon状态
		public final static Integer COUPON_STATUS_UNCLAIMED = 0;//未领取
		public final static Integer COUPON_STATUS_RECEIVE = 1;//已领取
		
		//红包是否发送
		public final static String IS_SEND_NO = "0";//未发送
		public final static String IS_SEND_YES = "1";//已发送
		
		//礼品状态
		public final static Integer GIFT_IS_UNPUTAWAY = 0;//下线
		public final static Integer GIFT_IS_PUTAWAY = 1;//上线
		
		//红包金额（元/分）转换中间值
		public final static BigDecimal HB_AMOUNT = new BigDecimal(100);
		
		//微信返回xml信息关键字段
		public final static String weixin_event = "event";
		public final static String weixin_subscribe = "subscribe";
		public final static String weixin_text = "text";
		
		//兑奖类型
		public final static Integer WIN_TYPE_CODE = 0;//扫码兑奖
		public final static Integer WIN_TYPE_POINT = 1;//积分兑奖
		public final static Integer WIN_TYPE_LOTTERY = 1;//积分抽奖
		
		//奖品兑换状态
		public final static String WIN_NOT_CONVERT = "0";//未兑奖
		public final static String WIN_GOING_CONVERT = "1";//兑奖中
		public final static String WIN_COMPLETE_CONVERT = "2";//已兑奖
		public final static String WIN_WAIT_CONVERT = "3";//待发奖
		public final static String WIN_WAIT_LOOKOVEDR = "4";//查看（只读）
		
		//积分流水类型
		public final static Integer COST_TYPE_CHECK_IN = 0;//签到
		public final static Integer COST_TYPE_EXCHANGE = 1;//兑换
		public final static Integer COST_TYPE_LOTTERY = 2;//抽奖
		public final static Integer COST_TYPE_SCANLOTTERY = 3;//抽奖
		
		//积分消费类型
		public final static Integer COST_EXCHANGE = 0;//兑换
		public final static Integer COST_LOTTERY = 1;//抽奖

		//奖品物流发货状态
		public final static String LOGISTICS_UNSEND = "0";//未发货
		public final static String LOGISTICS_SEND = "1";//已发货
		public final static String LOGISTICS_RECEIVE = "2";//已收货
		
		//红包类型
		public final static Integer HB_TYPE_PT = 0;//普通红包
		public final static Integer HB_TYPE_LB = 1;//裂变红包
		public final static Integer HB_TYPE_QY = 2;//企业红包
		
		//是否禁用红包
		public final static Integer hb_switch_off = 0;
		public final static Integer hb_switch_on = 1;
		//用户关注
		public final static Integer hb_is_follow_off = 0;
		public final static Integer hb_is_follow_on = 1;
		
		//是否发送
		public final static Integer hb_is_send_off = 0;
		public final static Integer hb_is_send_on = 1;
		
		//后台页面跳转
		public final static String PORTAL_ADMIN="admin";
		public final static String PORTAL_ADMIN_LOGIN="admin/login";//登录页面
		public final static String PORTAL_ADMIN_INDEX="admin/index";//首页
		public final static String PORTAL_ADMIN_AD_INDEX = "portalIndex";//广告信息列表
		public final static String PORTAL_ADMIN_WEIXIN_SETTING="admin/wxSetting";//微信设置
		public final static String PORTAL_ADMIN_WEIXIN_MENU="admin/wxMenu";//微信菜单配置
		public final static String PORTAL_ADMIN_SCORE_INIT="admin/scoreInit";//积分配置
		public final static String PORTAL_ADMIN_GIFT_LIST="admin/giftList";//礼品列表
		public final static String PORTAL_ADMIN_GIFT_ADD="admin/addGift";//新增礼品
		public final static String PORTAL_ADMIN_HB_INIT="admin/hbInit";//红包设置
		public final static String PORTAL_ADMIN_HB_RECORD="admin/hbRecord";//红包设置
		public final static String PORTAL_ADMIN_DJ_APPLY="admin/djApply";//兑奖申请
		public final static String PORTAL_ADMIN_DJ_RECORD="admin/djRecord";//兑奖记录
		public static final String PORTAL_ADMIN_GOD_LIST = "admin/godList";//用户列表
		public static final String PORTAL_ADMIN_ALTER_PWD = "admin/alterPwd";//用户列表
		public static final String PORTAL_ADMIN_COUPON_LIST = "admin/couponList";//券码列表
		public static final String PORTAL_ADMIN_GIFT_CHART = "admin/giftChart";//礼品发放情况统计图
		public static final String PORTAL_ADMIN_SCORE_RANK = "admin/scoreRank";//颜值排行页面
		public static final String PORTAL_ADMIN_AMOUNT_RANK = "admin/amountRank";//红包金额排行页面
		public static final String PORTAL_ADMIN_SCANCODERATE = "admin/scanCodeRate";//扫码统计页面
		public static final String PORTAL_ADMIN_SCANCODETATISTIC = "admin/scanCodeStatistic";//扫码统计页面
		public static final String PORTAL_ADMIN_IMMEDSCSTATISTIC = "admin/immedSCStatistic";//扫码统计页面
		public static final String PORTAL_ADMIN_HBSTATISTIC = "admin/hbStatistic";//红包统计页面
		public static final String PORTAL_ADMIN_IMMEDHBSTATISTIC = "admin/immedHBStatistic";//实时红包统计页面
		public static final String PORTAL_ADMIN_QRCODESTATISTIC = "admin/qrcodeStatistic";//二维码扫描量页面
		public static final String PORTAL_ADMIN_AREASTATISTIC = "admin/areaStatistic";//二维码扫描用户分布页面
		public static final String PORTAL_ADMIN_KEYWORDREPLY = "admin/keywordReply";//自定义回复页面
		public static final String PORTAL_ADMIN_LOG_LIST = "admin/logList";//日志列表页面
		public static final String PORTAL_ADMIN_WINNINGINIT = "admin/WinningInit";//中奖设置页面
		public static final String PORTAL_ADMIN_ACTIVEHB = "admin/activeHbInit";//活动红包配置页面
		public static final String PORTAL_ADMIN_CHECKADATA = "admin/checkData";//数据查询页面		
		public static final String PORTAL_ADMIN_QRCODEMANAGE = "admin/qrcodeManage";
		public static final String PORTAL_ADMIN_QRCODEMANAGE2 = "admin/qrcodeManage2";
		//微信前台页面跳转
		public final static String PORTAL_WEIXIN_PERSON_CENTER="personCenter";//微信个人中心
		public final static String PORTAL_WEIXIN_PERSON_SET="personSet";//微信个人中心设置
		public final static String PORTAL_WEIXIN_PORTAL_INDEX="index";//portal首页
		public final static String PORTAL_WEIXIN_SHOW_VENDOR="vendorShow";//查看商家信息
		public final static String PORTAL_WEIXIN_PRODUCT_COMMENT="productComment";//产品评论
		public final static String PORTAL_WEIXIN_WEIXIN_URL="weixin/weixinUrl";//weixinUrl
		public final static String PORTAL_WEIXIN_MY_LOTTERY="myLottery";//我的奖券
		public final static String PORTAL_WEIXIN_MY_ACTIVITY="myActivity";//我的活动
		public final static String PORTAL_WEIXIN_SCORE_FLOW="integralList";//积分流水记录
		public final static String PORTAL_WEIXIN_SCORE_GIFT_INFO="giftInfo";//我的活动，礼品详细
		public final static String PORTAL_WEIXIN_SCORE_MY_GIFT_INFO="myGiftInfo";//我的奖卷，礼品详细
		
		public static String PORTAL_ACCESSTOKEN = "";
		
		 /** 8 位 UCS 转换格式 */
		 public static final String UTF_8 = "UTF-8";
		 
		/** http 发送类型*/
		public static final String PORTAL_WEIXIN_GET = "GET";
		public static final String PORTAL_WEIXIN_POST = "POST";
		
		public static String IMG = "";
		
	}

	class Page {
		// 新闻列表每页记录数
		public final static int PRODUCT_PAGESIZE = 6;
	}
	
	
	class Session {
		public final static String ADMIN = "admin";
		public final static String USER = "user";
	}
}